﻿namespace Grow.Utils.Extensions
{
    public static class TypeExtensions
    {
        public static bool IsAssignableFrom(this Type type, Type baseType)
        {
            return baseType.IsAssignableFrom(type);
        }
        public static bool IsAssignableFrom<TBase>(this Type type)
        {
            return IsAssignableFrom(type, typeof(TBase));
        }

    }
}
